package day7;

import day6.pet.Dog;
import day6.pet.Penguiun;

/**
 * @author oldliu
 * @since 1.0
 */
public class DogAndPenguiunBijiao {
    public static void main(String[] args) {
        Dog dog = new Dog("大黄", 70, 67, "公", "狼狗");
        Penguiun p=new Penguiun("小蓝企鹅",60,60,"公");
        boolean eq = dog.equals(p);
        System.out.println("相同？"+eq);

       // Dog d2=(Dog)p;
        System.out.println(">>>>>>>>>>>null对象可以墙砖成任何类的对象>>>>>>>>>>>>>>>>>>>>>>>>>>");
        Object d3=null;
        Penguiun p3=(Penguiun)d3;
        System.out.println(p3);

    }
}
